import tkinter as tk  # 使用Tkinter前需要先导入
from tkinter import *

def newwind1():
    winNew = Toplevel(window)
    winNew.geometry('320x240')
    winNew.title('1')
    btClose = Button(winNew, text='关闭', command=winNew.destroy)
    btClose.place(relx=0.7, rely=0.5)
    b1 = tk.Button(winNew, text='确定', command=lambda: order(e1.get()))
    b1.place(relx=0.6, rely=0.5)
    e1 = Entry(winNew, show=None)
    e1.place(relx=0.3, rely=0.2)
    l1 = Label(winNew, text='请输入下载起始日期')
    l1.place(relx=0.1, rely=0.2)

def newwind2():
    winNew = Toplevel(window)
    winNew.geometry('320x240')
    winNew.title('2')
    btClose = Button(winNew, text='关闭', command=winNew.destroy)
    btClose.place(relx=0.7, rely=0.5)
    b1 = Button(winNew, text='确定', command=lambda: order(e1.get()))
    b1.place(relx=0.6, rely=0.5)
    e1 = Entry(winNew, show=None)  # 显示成密文形式
    e1.place(relx=0.3, rely=0.2)
    l1 = Label(winNew, text='股票代码')
    l1.place(relx=0.1, rely=0.2)


window = tk.Tk()
window.title('My Window')
window.geometry('500x300')  # 这里的乘是小x
l = tk.Label(window, text='Welcome', bg='blue', font=('Arial', 12), width=30, height=2)
b1 = tk.Button(window, text='1', font=('Arial', 12), width=15, height=1, command=newwind1)
b2 = tk.Button(window, text='2', font=('Arial', 12), width=15, height=1, command=newwind2)
l.pack()
b1.pack()
b2.pack()
window.mainloop()